package org.pine.api.beans.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 批量ID请求体
 *
 * @author pine
 * @version 1.0
 * @since 2025-04-10 15:19
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(description = "批量id请求体")
public class BatchIdRequest<ID> implements Serializable {

    @Serial
    private static final long serialVersionUID = 2504501143942952370L;

    @Schema(title = "ids", description = "ids", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "ids不能为空")
    private List<ID> ids;
}
